package com.erp.erp_servers.ProducFjInfo.imp;

import com.erp.erp_dao.ProducFjInfo.IProductFjInfoDAO;
import com.erp.erp_entitys.ProducFjInfo.ProducFjInfoEntity;
import com.erp.erp_entitys.ProducFjInfo.ProducFjInfoExample;
import com.erp.erp_servers.ProducFjInfo.IProductFjInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpProductFjInfoService  implements IProductFjInfoService {
    @Autowired
    IProductFjInfoDAO productFjInfoDAO;

    @Override
    public long countByExample(ProducFjInfoExample example) {
        return productFjInfoDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(ProducFjInfoExample example) {
        return productFjInfoDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productFjInfoDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProducFjInfoEntity record) {
        return productFjInfoDAO.insert(record);
    }

    @Override
    public int insertSelective(ProducFjInfoEntity record) {
        return productFjInfoDAO.insertSelective(record);
    }

    @Override
    public List<ProducFjInfoEntity> selectByExample(ProducFjInfoExample example) {
        return productFjInfoDAO.selectByExample(example);
    }

    /**
     * 精确查询规格信息
     * @param req 查詢條件
     * @return 规格信息
     */
    @Override
    public List<ProducFjInfoEntity> getSpecInfo(ProducFjInfoEntity req) {
        return productFjInfoDAO.getSpecInfo(req);
    }

    @Override
    public ProducFjInfoEntity selectByPrimaryKey(Integer id) {
        return productFjInfoDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ProducFjInfoEntity record, ProducFjInfoExample example) {
        return productFjInfoDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ProducFjInfoEntity record, ProducFjInfoExample example) {
        return productFjInfoDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ProducFjInfoEntity record) {
        return productFjInfoDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProducFjInfoEntity record) {
        return productFjInfoDAO.updateByPrimaryKey(record);
    }
}
